package main

import (
	"time"

	"gopkg.in/macaron.v1"
)

func main() {
	m := macaron.New()
	m.Use(macaron.Static("public", macaron.StaticOptions{
		Prefix:      "prefix1",
		SkipLogging: true,
		IndexFile:   "index.html", // Default is "index.html"
		Expires: func() string {
			return time.Now().Add(24 * 60 * time.Minute).UTC().Format("Mon, 02 Jan 2006 15:04:05 GMT")
		},
	}))
	m.Run()

}
